package cn.cs.client;

import cn.cs.config.CsConfiguration;
import cn.cs.fallback.AccountDetailFallBack;
import cn.cs.fallback.CsProportionSettingFallBack;
import cn.cs.pojo.CsProportionSetting;
import org.springframework.cloud.netflix.feign.FeignClient;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RequestParam;


/**
 * Created by yuexl
 */
@FeignClient(name = "cs-user-provider", configuration = CsConfiguration.class, fallback = CsProportionSettingFallBack.class)
public interface CsProportionSettingClient {


    @RequestMapping(value = "/getCsProportionSettingById", method = RequestMethod.POST)
    public CsProportionSetting getCsProportionSettingById(@RequestParam("id") String id)throws Exception;

    @RequestMapping(value = "/updateCsProportionSetting", method = RequestMethod.POST)
    public Integer updateCsProportionSetting(@RequestBody CsProportionSetting csProportionSetting)throws Exception;

}

